﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Quality_Calculator.Skills
{
    abstract class SkillBase
    {
        
        public Image Icon { get; set; }
        public String Name { get; set; }
        public int CpCost { get; set; }
        public int DurabilityCost { get; set; }


        virtual public bool CastSpell(Synthesis synth)
        {
            if (synth.CPCurrent >= CpCost)
            {
                SpellEffect(synth);
                synth.CPCurrent -= CpCost;
                return true;
            }
            return false;
        }
        abstract public void SpellEffect(Synthesis synth);

    }
}
